#pragma once
#include "command.h"
#include <vector>

struct fHeader
{
    char magic[8];
    word version;
    word fType;
    dword fSize;
};
struct pHeader
{
    dword pEntry;
    dword pSize;
    dword fBegin;
    dword checkSum;
};
struct Pair
{
    dword codes;
    dword datas;
};

fHeader getHeader(const char *filename);
void loadImage(const char *filename, fHeader fMessage);